import re

s1 = "21775708"
s2 = "hid:15285961"

# 使用正则表达式提取数字部分
num1 = int(re.search(r'\d+', s1).group())
num2 = int(re.search(r'\d+', s2).group())

print(num1, num2)